from flask_restx import fields
from app_restful.restx import api

test_model = api.model('test_model',{
    'id': fields.Integer(description='id'),
    'name': fields.String(description='名字')
})

test_response = api.inherit('test_response',{
    'data': fields.Nested(test_model,as_list=True)
})
